package com.zealcomm.ivcscustomer.login;

import android.os.Bundle;

import com.zco.util.ToastUtil;
import com.zealcomm.commonui.base.BaseFragmentActivity;
import com.zealcomm.ivcscustomer.R;
import com.zealcomm.ivcscustomer.app.IvcsApplication;
import com.zealcomm.ivcscustomer.databinding.ActivitySettingBinding;

public class SettingActivity extends BaseFragmentActivity {

    private ActivitySettingBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivitySettingBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        binding.saveBtn.setOnClickListener(v -> {
            IvcsApplication.setBaseUrl(binding.etHost.getText().toString() + "/");
            ToastUtil.showShort(getString(R.string.relogin_please));
            finish();
        });
    }

}
